import request from '@/utils/request'

// 查询场馆列表
export function listStadium(query) {
  return request({
    url: '/debao/stadium/list',
    method: 'get',
    params: query
  })
}
// 查询所有场馆列表
export function allListStadium(query) {
  return request({
    url: '/debao/stadium/all',
    method: 'get',
    params: query
  })
}

// 查询场馆详细
export function getStadium(id) {
  return request({
    url: '/debao/stadium/' + id,
    method: 'get'
  })
}

// 新增场馆
export function addStadium(data) {
  return request({
    url: '/debao/stadium',
    method: 'post',
    data: data
  })
}

// 修改场馆
export function updateStadium(data) {
  return request({
    url: '/debao/stadium',
    method: 'put',
    data: data
  })
}

//上下线场馆
export function upStatus(data) {
  return request({
    url: '/debao/stadium/upStatus',
    method: 'get',
    params: data
  })
}

// 删除场馆
export function delStadium(id) {
  return request({
    url: '/debao/stadium/' + id,
    method: 'delete'
  })
}
